package com.db.stockexchange.common.messages.server;

import com.db.stockexchange.common.OrderSide;
import com.db.stockexchange.common.OrderStatus;

public class CancelledMessage extends ExecutionReportMessage {
	private int origOrderID;
	private float lastPrice;
	private int lastQuantity;
	
	public CancelledMessage(String senderCompID, int orderID,
			String symbol, OrderSide side,
			int origOrderID, float lastPrice, int lastQuantity) {
		super(senderCompID, orderID, symbol, side, OrderStatus.CANCELLED);
		this.origOrderID = origOrderID;
		this.lastPrice = lastPrice;
		this.lastQuantity = lastQuantity;
	}

	public int getOrigOrderID() {
		return origOrderID;
	}

	public float getLastPrice() {
		return lastPrice;
	}

	public int getLastQuantity() {
		return lastQuantity;
	}
}
